package com.zhou;

import java.util.Scanner;
import java.util.Vector;

/**
 * T16
 *
 * @author zhouxianfeng
 * @date 2021-8-26
 */
public class T16 {
    /**
     * 输入：
     * 3 1
     * 6 5 1
     * 复制
     * 输出：
     * 4 4 4
     * 复制
     * 相似企业真题
     *
     * @param args
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int x = sc.nextInt();
        int[] s = new int[m];
        for (int i = 0; i < m; i++) {
            s[i] = sc.nextInt();
        }
        Vector vector = new Vector();

    }

    public static int resolve(int[] s, int x) {
        int m = s.length;
        int[] s1 = s.clone();
        for (int j = 0; j < m; j++) {
            int curr = s[j];
            for (int i = x - 1; ; i--) {
                if (i < 0) {
                    i = m - 1;
                }


            }
        }
        return 0;
    }
}
